package com.ruoyi.cderp.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 组合商品对象 base_data_product_bundle
 *
 * @author ruoyi
 * @date 2025-04-14
 */
public class ProductBundle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 主商品ID */
    @Excel(name = "主商品ID")
    private String mainProductId;

    /** 单品ID */
    @Excel(name = "单品ID")
    private String productId;

    /** 包含数量 */
    @Excel(name = "包含数量")
    private Long bundleNum;

    /** 销售价 */
    @Excel(name = "销售价")
    private BigDecimal salePrice;

    /** 零售价 */
    @Excel(name = "零售价")
    private BigDecimal retailPrice;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private String createById;

    /** 修改人ID */
    @Excel(name = "修改人ID")
    private String updateById;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setMainProductId(String mainProductId)
    {
        this.mainProductId = mainProductId;
    }

    public String getMainProductId()
    {
        return mainProductId;
    }
    public void setProductId(String productId)
    {
        this.productId = productId;
    }

    public String getProductId()
    {
        return productId;
    }
    public void setBundleNum(Long bundleNum)
    {
        this.bundleNum = bundleNum;
    }

    public Long getBundleNum()
    {
        return bundleNum;
    }
    public void setSalePrice(BigDecimal salePrice)
    {
        this.salePrice = salePrice;
    }

    public BigDecimal getSalePrice()
    {
        return salePrice;
    }
    public void setRetailPrice(BigDecimal retailPrice)
    {
        this.retailPrice = retailPrice;
    }

    public BigDecimal getRetailPrice()
    {
        return retailPrice;
    }
    public void setCreateById(String createById)
    {
        this.createById = createById;
    }

    public String getCreateById()
    {
        return createById;
    }
    public void setUpdateById(String updateById)
    {
        this.updateById = updateById;
    }

    public String getUpdateById()
    {
        return updateById;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mainProductId", getMainProductId())
            .append("productId", getProductId())
            .append("bundleNum", getBundleNum())
            .append("salePrice", getSalePrice())
            .append("retailPrice", getRetailPrice())
            .append("createBy", getCreateBy())
            .append("createById", getCreateById())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateById", getUpdateById())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
